package com.edu.jvm.unit01.heap;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.TimeUnit;

/**
 * 测试大对象直接入老年代
 * -Xmx60m -Xms60m -XX:NewRatio=2 -XX:SurvivorRatio=8 -verbose:gc -XX:+PrintGCDetails
 * @author five-five
 * @date 2021/9/14
 */
public class YoungAndOldAreaTest {
    public static void main(String[] args) {
        /*
         ParOldGen       total 40960K, used 20480K [0x00000000fc400000, 0x00000000fec00000, 0x00000000fec00000)
           object space 40960K, 50% used [0x00000000fc400000,0x00000000fd800010,0x00000000fec00000)
         */
        byte[] bytes = new byte[1024 * 1024 * 20];//20mb
    }
}
